//
//  AppDelegate.m
//  CloudPlayerDemo
//
//  Created by Ru He on 2022/2/25.
//

#import "AppDelegate.h"
#import <HuaweiCloudPlayer/HuaweiCloudPlayer.h>

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
//    [HuaweiCloudPlayer setConsoleLog:HCPLogLevelDebug];
//    NSString *path = [NSString stringWithFormat:@"%@/Documents/dmplog", NSHomeDirectory()];
//    [HuaweiCloudPlayer setFileLog:HCPLogLevelDebug atPath:path];
    
    
    
    return YES;
}

- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    if (self.restrictRotation) {
        return UIInterfaceOrientationMaskLandscapeRight;
    } else {
        return UIInterfaceOrientationMaskPortrait;
    }
}


@end
